@echo off
setlocal enabledelayedexpansion
@REM %1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c ""%~s0"" ::","","runas",1)(window.close)&&exit

@REM cd /d "E:\Work\Code\trunk_mhjong_new\info"
@REM call zip_file.bat 1

cd /d %~dp0
if exist ossutil.log del ossutil.log exit

:input

title 选择上传渠道
echo.
echo =================1.江苏==========================
echo.
echo =================2.连云港========================
echo.
echo =================3.苏北==========================
echo.
echo =====多个渠道请用“,”隔开，如:江苏和连云港 1,2=======
::bat标题

set /p "num=请输入“1”或“2”到这里，然后按下回车键："

set str=%num%

set remain=%str%
:loop
for /f "tokens=1* delims=," %%a in ("%remain%") do (

    echo a %%a
    if %%a == 1 (

        set path=rmex-jsmj-new
        set dir=JiangSu
        set id=1003_3
    )
    if %%a ==2 (

        set path=rmex-lygmj-new
        set dir=LianYunGang
        set id=1001_3
    )
    if %%a == 3 (

        set path=rmex-lygmj-new
        set dir=SuBei
        set id=1006_3
    )
	
    echo !dir! !path! !id!
    call upload.bat !dir! !path! !id!
    
    @REM echo b %%b
    @REM goto %%a

    set remain=%%b
   
)

if defined remain goto :

@REM 快快网络刷新缓存 
call refreshCache.bat
echo "refreshCache finish.."


pause